package myown

class StringIterator(private val msg:String): CIterator<MutableList<String>> {

    /**
     * 本迭代器执行结果
     */
    override var executeResult: ExecuteResult = ExecuteResult.UnStart

    /**
     * 迭代器失败时的提示信息
     */
    override var message: String=""


    override fun init(t: MutableList<String>) {
        t.add(msg)
    }

    override fun execute(t: MutableList<String>){
        println(t.last())
    }



}